﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.EquipmentTypes>" %>
<%@ Import Namespace="CRM.Models" %>

<% Html.DevExpress().ComboBox(settings =>
                                    {
                                        settings.Name = "EquipmentTypes";
                                        settings.CallbackRouteValues =
                                           new { Controller = "Test", Action = "EquipmentTypesPartial" };
                                        settings.Properties.CallbackPageSize = 10;
                                        settings.Properties.TextField = "EquipmentTypeRu";
                                        settings.Properties.ValueField = "IdEquipmentType";
                                        settings.Properties.EnableCallbackMode = true;
                                        settings.Properties.ClientSideEvents.SelectedIndexChanged = "function (s, e) {}";

                                    }).BindList(DB.EquipmentTypes.ToList()).GetHtml();%>